package top.letscode.adclicker.util;

import java.io.File;
import java.util.List;

public class FileUtils {

  @SuppressWarnings("unchecked")
  public static List<String> readFileToLines(String fileName) throws Exception {
    File file = new File(FileUtils.class.getResource(fileName).getFile());

    return (List<String>) org.apache.commons.io.FileUtils.readLines(file, "UTF-8");
  }
}
